package com.ld.doamin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Department)实体类
 *
 * @author makejava
 * @since 2022-12-08 14:36:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department  {
    
    
    private Long id;
    
    private String name;
    /**
     * 简介
     */
    private String intro;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 部门经理对应员工表
     */
    private Long managerId;
    /**
     * 上级部门
     */
    private Long parentId;
    
    private String path;
    
    private Integer state;

    private Employee manager;

    private Department parent;

    private List<Department> children;
}

